package com.bingxue.edu.framework.mybatis.query;

import com.mybatisflex.core.query.QueryWrapper;
import org.junit.jupiter.api.Test;

/**
 * @author panbo
 * @since 2024/7/1
 */
class QueryBuilderTest {

    @Test
    void test() {
        UserQuery userQuery = new UserQuery();
        userQuery.setId(1);
        userQuery.setName("name");
        userQuery.setUserAge(18);
        userQuery.setNullValue(null);
        userQuery.setKeyword("keyword");
        QueryWrapper queryWrapper = QueryBuilder.build(userQuery);
        System.out.println(queryWrapper.toSQL());
    }
}
